package com.jy.adscm.spss.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.spss.bean.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yyy
 * @since 2018-11-08
 */
public interface Base_commodityinfoService extends IService<Base_commodityinfo> {


    public void  updateWeek() throws Exception ;
    public Map<String,Object> loadPlanTotal(String rwlx) throws Exception;

    List<Base_Result> queryPlanTotal();
    /**
     * 获取采购和销售详细信息
     */
    public Map<String, Object> getByDetailed(String whereWeek,String rwlx);

    /**
     * 销售采购堆积图
     * @param rwlx
     * @return
     */
    public Map<String,Map<String, Object> > getStackingChart(String rwlx);

    /**
     * 获取月的详细信息
     */
    public Map<String, Object> getSZDtail() throws Exception;

    /**
     * 获取收支信息
     * @return
     */
    public List<Base_incomeexpenditure > getBySZInformation(String type, String whereWeek) throws Exception;

    /**
     * 修改销售和采购
     */
    public void updateXSTable(SalePurchase salePurchase);
    /**
     * 修改收支
     */
    public void updateSZTable(SZResult szResult);


    public JSONObject getIncomeStacking(String rwlx);
}
